<%@page import="guest.Guest"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style>
#ir_main{
	margin:0 auto;
	text-align: center;
	padding-top:50px;
}
</style>
<script src="./guest/guest.js"></script>

</head>
<body>
<jsp:useBean id="vo" class="guest.GuestVo"/>
<jsp:setProperty property="*" name="vo"/>

<div id="ir_main">
	<h2>방명록 입력 결과</h2>
	<br/>
	<%
	Guest g = new Guest();
	g.setVo(vo);
	
	if(g.insert()){
		out.print("방명록이 입력되었습니다.");
	}else{
		out.print("등록 중 오류가 발생하였습니다.");
	}
	%>
	<br/><br/><br/>
	<input type="button" value="목록" id="btnList" style="width:50px; height: 30px; border:2px solid pink">
</div>
<script> init(); </script>
</body>
</html>